package com.klun.designMode.adapter;

/**
 * 适配器 3 转 2
 */
class ThreeToTwoAdapter implements ThreeInterface {
    TwoInterface twoInterface;

    public ThreeToTwoAdapter(TwoInterface twoInterface) {
        this.twoInterface = twoInterface;
    }

    @Override
    public void OfferPowerForThree() {
        twoInterface.OfferPowerForTwo();
    }
}
